﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    Inherits="Pages_Report_OperatorReport" CodeBehind="OperatorReport.aspx.cs" %>

<%@ Register TagPrefix="avg" Namespace="Avg.Controls" Assembly="SmartPager" %>
<asp:Content ID="Content4" ContentPlaceHolderID="content" runat="Server">
    <div style="margin: 10px 3px 0 3px">
        <asp:Panel ID="panel1" runat="server" DefaultButton="btnSearch" BackColor="AliceBlue">
            <table id="condition">
                <tr>
                    <td>
                        <h1>
                            Operator Report</h1>
                        <div class="description">
                            <b style="color: Red">*</b> Required
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="label">
                            From Date:
                        </div>
                        <div class="field">
                            <asp:TextBox ID="txtFromDate" runat="server" CssClass="datepicker"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ErrorMessage="*"
                                ControlToValidate="txtFromDate"></asp:RequiredFieldValidator>
                        </div>
                    </td>
                    <td>
                        <div class="label">
                            To Date:
                        </div>
                        <div class="field">
                            <asp:TextBox ID="txtToDate" runat="server" CssClass="datepicker"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                ControlToValidate="txtToDate"></asp:RequiredFieldValidator>
                        </div>
                    </td>
                    <td>
                        <div class="label">
                            Boat#:
                        </div>
                        <div class="field">
                            <asp:DropDownList ID="ddlBoat" runat="server">
                            </asp:DropDownList>
                        </div>
                    </td>
                    <td colspan="2">
                        <asp:LinkButton CssClass="button" ID="btnSearch" runat="server" ToolTip="View button"
                            OnClick="btnSearch_Click"><span>Generate</span></asp:LinkButton>
                        <asp:LinkButton CssClass="button" ID="btnReport" runat="server" ToolTip="Print button"
                            OnClick="btnPrint_Click"><span>Export file</span></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <div id="mainDiv">
            <asp:GridView ID="grv" runat="server" CssClass="grid" AllowSorting="true" AutoGenerateColumns="false"
                Style="border-color: #eaeaea" DataKeyField="BoatID">
                <Columns>
                    <asp:BoundField HeaderText="Departure date" DataField="CheckInDate" HeaderStyle-Width="80"
                        HeaderStyle-HorizontalAlign="Center" DataFormatString="{0:d}"></asp:BoundField>
                    <asp:BoundField HeaderText="Booking code" DataField="ReservationCode" HeaderStyle-Width="80"
                        HeaderStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="Date on cabin" DataField="Date" HeaderStyle-Width="80"
                        HeaderStyle-HorizontalAlign="Center" DataFormatString="{0:d}"></asp:BoundField>
                    <asp:BoundField HeaderText="Boat" DataField="BoatID" HeaderStyle-Width="80" HeaderStyle-HorizontalAlign="Center">
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Cabin#" DataField="CabinNumber" HeaderStyle-Width="80"
                        HeaderStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="No of pax" DataField="NumOfPeople" HeaderStyle-Width="80"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="Cabin Type" DataField="CabinType" HeaderStyle-Width="80"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="Name" DataField="Representative" HeaderStyle-Width="80"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="Shuttle" DataField="Shuttle" HeaderStyle-Width="80" HeaderStyle-HorizontalAlign="Center"
                        ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="Route taken" DataField="RouteNumber" HeaderStyle-Width="80"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="Pickup Address" DataField="HotelAddress" HeaderStyle-Width="100"
                        HeaderStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="Notes on Bkg code" DataField="Note" HeaderStyle-Width="80"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="Notes on cabin" DataField="NoteDetail" HeaderStyle-Width="80"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="Price" DataField="CabinPrice" HeaderStyle-Width="80"
                        DataFormatString="{0:#,##0.##}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center">
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Deposit" DataField="Deposit" HeaderStyle-Width="80" ItemStyle-HorizontalAlign="Right"
                        DataFormatString="{0:#,##0.##}" HeaderStyle-HorizontalAlign="Center"></asp:BoundField>
                    <asp:BoundField HeaderText="Balance" DataField="Paid" HeaderStyle-Width="80" ItemStyle-HorizontalAlign="Right"
                        DataFormatString="{0:#,##0.##}" HeaderStyle-HorizontalAlign="Center"></asp:BoundField>
                </Columns>
                <HeaderStyle CssClass="gridheader" />
                <RowStyle CssClass="gridrow" />
                <AlternatingRowStyle CssClass="alternatingrow" />
            </asp:GridView>
            <avg:SmartPager ID="smartPager" runat="server" Visible="false" NavigatePreviousText="« Previous"
                NavigateNextText="Next »">
            </avg:SmartPager>

            <script type="text/javascript" language="javascript">
                $(function () {
                    // Datepicker
                    $(".datepicker").datepicker({
                        constrainInput: true,
                        onSelect: function () { }
                    });
                });
            </script>

        </div>
    </div>
</asp:Content>
